import React, { Component } from 'react';
import { Text, View,StyleSheet,Alert,Button,TextInput,Dimensions,Image} from 'react-native';
//导入Action的包,处理页面跳转
import { Actions } from 'react-native-router-flux';
export default class Login extends Component {
    constructor(props){
        super(props);
        this.state = {
            token:'111token',
        }
    }
    static  navigationOptions = ({navigation}) => {
        return {
            header:null
            // headerStyle:({backgroundColor:'#fafafa'}),
            // headerTitle: 'Home',
            // headerTitleStyle: CommonStyle.headerTitleStyle,
            // headerRight: (<View style={{ height: 40, width: 40 }}> 登录 </View>),
        }
    }
    render(){
        return (
          <Text onPress={()=>{// - 去首页
              Actions.home(this.state.token);
          }}>
              登陆1123231
          </Text>

        );
    }
};
const styles = StyleSheet.create({


});